/****************************************************
    Author:            龙之介
    CreatTime:    #CreatTime#
    Description:     Nothing
*****************************************************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using UnityEngine.UI;
using ZYKTool;
using System.Linq;



namespace LongZhiJie
{
	public class GunItem :MonoBehaviour
	{
        #region 常量
        public Gun基本属性 Gun基本属性
        {
            get;
            set;
        }
        public float offset;




        private GameObject projectile;
        private GameObject shotEffect;

        private float timeBtwShots;
        

        #endregion

        #region 事件
        #endregion

        #region 字段
        #endregion


        #region 属性 
        #endregion


        #region 方法 

        public void Attack()
        {
            Gun基本属性.Attack();
        }
        public string UpdateGun()
        {
            return Gun基本属性.UpdateGun();
        }
        #endregion

        #region Unity回调



        private void Update()
        {
            /*
            // Handles the weapon rotation
            Vector3 difference = Camera.main.ScreenToWorldPoint(Input.mousePosition) - transform.position;
            float rotZ = Mathf.Atan2(difference.y, difference.x) * Mathf.Rad2Deg;
            transform.rotation = Quaternion.Euler(0f, 0f, rotZ + offset);


                if (Input.GetMouseButton(0))
                {
                    Instantiate(shotEffect, shotPoint.position, Quaternion.identity);
                    Instantiate(projectile, shotPoint.position, transform.rotation);
                }
            
            */
        }
        #endregion

        #region 事件回调
        #endregion

        #region 帮助方法
        #endregion

    }
}